Skip to content

Add missing "three/addons" entry to importmap of splat-dissolve-effects example#310

Open
mrxz wants to merge 1 commit intosparkjsdev:mainfrom
mrxz:fix-dissolve-effects-example
Open

Add missing "three/addons" entry to importmap of splat-dissolve-effects example#310
mrxz wants to merge 1 commit intosparkjsdev:mainfrom
mrxz:fix-dissolve-effects-example

Conversation

@mrxz
Copy link
Copy Markdown
Collaborator

@mrxz mrxz commented Apr 21, 2026

The hosted version of the splat-dissolve-effects is currently broken due to a missing import map entry. Opening https://sparkjs.dev/examples/#splat-dissolve-effects logs the following error in the console:

Uncaught TypeError: The specifier “three/addons/controls/OrbitControls.js” was a bare specifier, but was not remapped to anything. Relative module specifiers must start with “./”, “../” or “/”.

When using npm run dev the error does not show up as Vite ignores the importmap and is able to properly resolve the three/addon/ import.

This PR adds the missing entry to the importmap of the example, resolving the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant